package cn.fsd.controller;

import cn.fsd.query.finance.StationQuery;
import cn.fsd.service.StationService;
import cn.fsd.vo.ResultBean;
import cn.fsd.vo.StationBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/station",produces = "application/json;charset=utf-8")
@Api(value = "财务管理的API",description = "财务管理的与分站结算功能")
public class StationController {

    @Autowired
    StationService stationService;

    @PostMapping("/query") //get + /station/station_id
    @ApiOperation(value = "查询分站的配送费及投递费结算情况")
    public ResultBean getSettlement(@RequestBody StationQuery stationQuery){
        StationBean stationBean = stationService.getSettlement(stationQuery);
        return ResultBean.success(stationBean);
    }

}
